<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        table.gridtable {
            width: 98%;
            font-family: verdana, arial, sans-serif;
            font-size: 11px;
            color: #333333;
            border-width: 1px;
            border-color: #666666;
            border-collapse: collapse;
        }

        table.gridtable th {
            border-width: 1px;
            padding: 8px;
            border-style: solid;
            border-color: #666666;
            background-color: #dedede;
        }

        table.gridtable td {
            border-width: 1px;
            padding: 8px;
            border-style: solid;
            border-color: #666666;
            background-color: #ffffff;
        }

        a {
            text-decoration: none;
        }
    </style>
</head>
<body>
   <h3>用户角色设置页面</h3>
   <form action="saveAdminRole" method="post">
       <h3 th:text="${admin.name}"></h3>
       <input type="hidden" name="id" th:value="${admin.id}"/>
       <button>保存</button>
       <hr/>
       <table class="gridtable">
           <tr>
               <th><input type="checkbox"/>全选</th>
               <th>角色ID</th>
               <th>角色名称</th>
               <th>角色代码</th>
           </tr>
           <tr th:each="r : ${roleList}">
               <td style="width: 80px"><input type="checkbox" name="roleIds" th:value="${r.roleId}"/></td>
               <td style="width: 80px" th:text="${r.roleId}">Onions</td>
               <td th:text="${r.roleName}">2.41</td>
               <td th:text="${r.roleCode}">yes</td>
           </tr>
       </table>
   </form>
</body>
</html>